#define _CRT_SECURE_NO_WARNINGS 1



#include<stdio.h>
#include<string.h>


char arr[10002] = { 0 };
int main()
{
	scanf("%s", arr);
	char temp[] = "abcdefghijklmnopqrstuvwxyz", str[27] = { 0 };
	int i = 0, len = strlen(arr), j = 0;
	for (i = 0, j = 25; i < 26; i++, j--)
		str[i] = temp[j];
	for (i = 0; i < len; i++)
	{
		for (j = 0; j < 26; j++)
		{
			if (arr[i] == temp[j] || arr[i] == temp[j] - 32)
			{
				if (arr[i] >= 'a' && arr[i] <= 'z')
					printf("%c", str[j] - 32);
				else if (arr[i] + 32 >= 'a' && arr[i] + 32 <= 'z')
					printf("%c", str[j]);
				break;
			}
		}
	}

	return 0;
}